package com.byx.chatserver.listener;

import com.byx.imserverutil.ImServerUtilRun;
import org.springframework.context.ApplicationListener;
import org.springframework.context.event.ContextClosedEvent;
import org.springframework.context.event.ContextRefreshedEvent;

/**
 * ServerListener
 *
 * @author Superb
 * @date 2021/4/4 15:54
 */
public class ServerStartListener implements ApplicationListener<ContextRefreshedEvent> {
    @Override
    public void onApplicationEvent(ContextRefreshedEvent contextRefreshedEvent) {
        ImServerUtilRun.getInstance().run(4869,null);
    }
}
